/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Mediator3;

/**
 *
 * @author Marcel
 */
public class ConcreteMediator implements Mediator{


    Colega1 c1;
    Colega2 c2;
    
    @Override
    public void setColega2(Colega2 c2) {
        this.c2 = c2;
    }

    @Override
    public void setColega1(Colega1 c1) {
        this.c1 = c1;
    }



    @Override
    public void executarC1() {
        c2.execute();
    }


    @Override
    public void executarC2() {
        System.out.println("c2 executando o método");
    }

    
}
